Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(OC_Helper): Use correct binary notation for calculating human file sizes #47711

Closed
wants to merge 1 commit into from

Conversation

provokateurin
Copy link
Member

Summary

Follows proper IEC 60027-2 notation.

Checklist

…e sizes

Signed-off-by: provokateurin <kate@provokateurin.de>
@provokateurin provokateurin force-pushed the fix/oc_helper/human-file-size-notation branch from 55e5dc0 to 057ca1a Compare September 3, 2024 12:27
@provokateurin provokateurin changed the title fix(OC_Helper): Use correct binary notation for calculating humand file sizes fix(OC_Helper): Use correct binary notation for calculating human file sizes Sep 3, 2024
@provokateurin
Copy link
Member Author

/backport to stable30

@provokateurin
Copy link
Member Author

/backport to stable29

@provokateurin
Copy link
Member Author

/backport to stable28

@provokateurin
Copy link
Member Author

Hm so nextcloud-libraries/nextcloud-files#822 sounds like this is intended. @susnux is this PR wrong?
I mean it is technically correct, but it seems the convention in Nextcloud is different (which I don't agree with but ok).

@provokateurin
Copy link
Member Author

Ok let's just stick to the wrong but established notation.

@provokateurin provokateurin deleted the fix/oc_helper/human-file-size-notation branch September 3, 2024 13:04
@susnux
Copy link
Contributor

susnux commented Sep 3, 2024

@provokateurin yes it was decided not to confuse existing users by switch the naming schema: #40621

In general it is a bit difficult, most users are spoiled by Windows using the wrong notation. But then there is Mac which is even weirder.

@AndyScherzinger AndyScherzinger removed this from the Nextcloud 31 milestone Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants